/**
 *******************************************************************************
 * @FileName  : config.h
 * @Author    : GaoQiu
 * @CreateDate: 2020-05-18
 * @Copyright : Copyright(C) GaoQiu
 *              All Rights Reserved.
 *******************************************************************************
 *
 * The information contained herein is confidential and proprietary property of
 * GaoQiu and is available under the terms of Commercial License Agreement
 * between GaoQiu and the licensee in separate contract or the terms described
 * here-in.
 *
 * This heading MUST NOT be removed from this file.
 *
 * Licensees are granted free, non-transferable use of the information in this
 * file under Mutual Non-Disclosure Agreement. NO WARRENTY of ANY KIND is provided.
 *
 *******************************************************************************
 */
#ifndef APP_CONFIG_H_
#define APP_CONFIG_H_


/*! Board Select */
#ifdef IP_108
	#define PAN10x_DK
//	#define PAN10x_DK_32
//	#define PAN10x_DG
#elif defined(IP_107)
//	#define PAN107x_DK
	#define PAN107x_DK_32
	#define COB_DK_EN                           0
#endif

/*! Load FT Info Enable */
#define CFG_HW_CALIB_ENABLE                     1

/* System Clock 32M/48M. */
#define CFG_SYS_CLK_MHZ                         48

/*! Sleep Clock Select.   0:RCL; 1:XTL(32768); 2:ACTIVE 32K */
#define CFG_SLEEP_CLOCK_SOURCE                  1

/*! PM Enable/Disable */
#define CFG_PM_EN                               0
#define CFG_PM_OPTIMIZE_EN                      0  // only use for pan107

/*! Sleep Mode Select. 0:Deep; 1:Standby M1(!!!XXX:Need to Close UART) */
#define CFG_SLEEP_MODE                          0  // only use for pan107

/*! Vector Re-map Enable */
#define CFG_VECTOR_REMAP_EN                     1  // only use for pan107

/*! Flash LDO enable/disable */
#define CFG_FLASH_LDO_EN                        1  // only use for pan107

/*! Set Flash Wire Mode. 0:1-Wire;  1:2-Wire;  2:4-Wire. */
#define CFG_FLASH_MODE                          2  // only use for pan107

/*! Set Power Mode */
#define CFG_DCDC_ENABLE                         1

/*! Button Interrupt mode enable/disable */
#define CFG_BTN_IT_MODE_EN                      1


/*! Set Tx Power Level, unit: dB */
#define CFG_TX_POWER_LVL                        3


/*! Track System Configuration. 0:NONE; 1:UART; 2:SUART; 3:USB */
#define TRACK_MODE                              1
#define TIMING_TRACK_EN                         0

void TrackSystemInit(void);

#endif /* CONFIG_H_ */
